withdrawal
Withdrawal
The withdrawal endpoint below is disabled and is not exposed in the current staging Agent API. This page preserves the legacy integration contract for reference. Contact integracija@vcash.rs before implementing withdrawals.
Overview
The legacy withdrawal flow uses the VCash API.
The staging environement for the VCash API is located at: https://staging.api.vcash.rs
The process goes as follows:
Authentication
When calling the VCash API, authentication is done by passing your API key in the secret header of the request.
Unless you request us to change the defaults, do not use the "Bearer" prefix, do not use the Authorization header. the Header format is: secret: <your-api-key>
Create a Withdrawal Request
Endpoint
Request
| Field | Type | Description |
|---|---|---|
amount | integer | Required. Withdrawal amount in cents. |
{
"amount": 25000
}
You need to send the amount as an integer, in cents. For example, if you want to send 250 RSD, you need to send 25000.
Response
The legacy response contains these fields:
| Field | Type | Description |
|---|---|---|
moneyTransfer | object | Created transfer details, including moneyTransferId, moneyTransferCode, and voucherCode. |
voucherUrl | string | Withdrawal URL to provide to the user. |
message | string | Response message. |
errors | array of objects | Error details, with code and description for each error. |